import 'dart:ui';

import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';

import 'Styles.dart';

/// @class : loading_config
/// @date : 2022-03-18 18:35
/// @name : LFC
/// @description :EasyLoadingConfig

class EasyLoadingConfig {
  static void configLoading() {
    EasyLoading.instance
      ..displayDuration = const Duration(milliseconds: 2000)
      ..indicatorType = EasyLoadingIndicatorType.circle
      ..loadingStyle = EasyLoadingStyle.custom
      ..indicatorSize = 24.0
      ..radius = 8.0
      ..progressColor = Styles.c1
      ..backgroundColor = Color(Styles.color_3D000000)
      ..indicatorColor = Styles.c1
      ..textColor = Colors.white
      ..maskColor = Colors.white
      ..textPadding = const EdgeInsets.only(bottom: 20.0)
      ..textStyle = TextStyle(
        fontSize: 14,
        color: Colors.white,
      )
      ..userInteractions = false
      ..dismissOnTap = false;
  }
}
